package demo20250331;

import com.alibaba.druid.support.json.JSONUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 */
@Component
//@Controller
//@Service
//@Repository
public class Person {
    @Resource(name="sweater")
    private Clothes clothes;
    void play(){
        System.out.println("穿衣服");
        clothes.wear();
    }
}
